@import url("style-header.css");
@import url("style-footer.css");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: #0e0e0f;
  color: #ffffff;
  line-height: 1.6;
  background-image: radial-gradient(
      ellipse 7000px 2700px at 50% 15%,
      rgba(255, 255, 255, 0.08) 5%,
      transparent 15%
    ),
    radial-gradient(
      ellipse at 90% 50%,
      rgba(255, 255, 255, 0.08) 2%,
      transparent 50%
    );
}

.container {
  max-width: 83.333vw;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Hero Section */
.hero {
  padding: 3rem 0;
}

.hero-title {
  font-size: 48px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 3rem;
}

.hero-title .highlight {
  position: relative;
  display: inline-block;
}

.hero-title .highlight::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0.375rem; /* 6px converted to rem */
  background-color: #ff250f;
  z-index: -1;
  transform: translateY(-0.875rem); /* 14px converted to rem */
  border-radius: 0.25rem; /* 4px converted to rem */
  transition: all 0.3s ease; /* Smooth scaling animation */
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: stretch; /* <<< najważniejsze */
  margin-bottom: 4rem;
  height: auto;
}

.hero-images {
  height: 100%;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0.5rem;
  display: block;
}

.hero-img-wide {
  grid-column: span 2;
}

.hero-text {
  color: #d1d5db;
  font-size: 16px;
}

.hero-text p {
  margin-bottom: 1rem;
}

/* Product Sections */
.product-sections {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 4rem;
}

.product-card {
  background-color: #ffffff1a;
  border: 1px solid #4b5563;
  border-radius: 0.5rem;
  padding: 1.5rem;
}

.product-header {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.red-dot {
  width: 0.5rem;
  height: 0.5rem;
  background-color: #ff250f;
  border-radius: 50%;
  margin-right: 0.5rem;
}

.product-header h2 {
  font-size: 1.25rem;
  font-weight: bold;
}

.product-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: start;
}

.product-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 0.5rem;
}

.product-description {
  color: #d1d5db;
  font-size: 0.875rem;
}

/* Galleries */
.galleries {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.gallery-section {
  background-color: #ffffff1a;
  border: 1px solid #4b5563;
  border-radius: 0.5rem;
  padding: 1.5rem;
}

.gallery-header {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.gallery-header h3 {
  font-size: 1.25rem;
  font-weight: bold;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}

.gallery-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: transform 0.2s;
}

.gallery-img:hover {
  transform: scale(1.05);
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
}

.lightbox-content {
  position: relative;
  margin: auto;
  padding: 20px;
  width: 90%;
  max-width: 800px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

.lightbox-close:hover {
  color: #ff250f;
}

#lightboxImg {
  width: 100%;
  height: auto;
  border-radius: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-images {
    grid-template-columns: 1fr;
  }

  .hero-img-wide {
    grid-column: span 1;
  }

  .product-sections {
    grid-template-columns: 1fr;
  }

  .product-content {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 2rem 0;
  }

  .hero-title {
    font-size: 1.75rem;
    margin-bottom: 2rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }
}
/* Responsive adjustments */
@media (max-width: 1200px) {
  .hero-title .highlight::after {
    height: 0.3125rem; /* 5px */
    transform: translateY(-0.75rem); /* 12px */
  }
}

@media (max-width: 992px) {
  .hero-title .highlight::after {
    height: 0.25rem; /* 4px */
    transform: translateY(-0.625rem); /* 10px */
    border-radius: 0.1875rem; /* 3px */
  }
}

@media (max-width: 768px) {
  .hero-title .highlight::after {
    height: 0.1875rem; /* 3px */
    transform: translateY(-0.5rem); /* 8px */
  }
}

@media (max-width: 576px) {
  .hero-title .highlight::after {
    height: 0.125rem; /* 2px */
    transform: translateY(-0.375rem); /* 6px */
    border-radius: 0.125rem; /* 2px */
  }
}
